package com.biaobiaoqi.scoreanalysis.administrator.action;

import java.util.List;

import javax.annotation.Resource;

import com.biaobiaoqi.scoreanalysis.hibernate.bean.Clazz;
import com.biaobiaoqi.scoreanalysis.service.IClazzService;
import com.opensymphony.xwork2.ActionSupport;

public class ListClazz extends ActionSupport {
 	private static final long serialVersionUID = -8376597649548537861L;
 	private int currentPage=0;
 	List<Clazz> list;
 	@Resource
 	IClazzService clazzService;
 	
 	public String execute() {
 		list = clazzService.listAllClazz(currentPage*9, 9);
		return SUCCESS;
	}


	public int getCurrentPage() {
		return currentPage;
	}


	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}


	public List<Clazz> getList() {
		return list;
	}


	public void setList(List<Clazz> list) {
		this.list = list;
	}
}
